From: Sebastian Wick Date: Tue, 14 Oct 2025 20:36:16 +0000 (+0200) Subject: shellDBus: Send an activation token for Accelerator(De)Activated X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~66^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=90d908da5d855d8b3071a52720bb91f863003a02;p=gnome-shell.git shellDBus: Send an activation token for Accelerator(De)Activated This will be useful for the global shortcuts portal implementation. Part-of: (cherry picked from commit d0e8dc2b66f324f6d6526c5cd333c19359047a0a) --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 9b91c7fb4..3c6bc3fff 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -286,9 +286,14 @@ export class GnomeShell { let connection = this._dbusImpl.get_connection(); let info = this._dbusImpl.get_info(); + + const context = global.create_app_launch_context(0, -1); + const token = context.get_startup_notify_id(null, []); + let params = { 'timestamp': GLib.Variant.new('u', timestamp), 'action-mode': GLib.Variant.new('u', Main.actionMode), + 'activation-token': GLib.Variant.new('s', token), }; let deviceNode = device.get_device_node();